package com.ala4.oxcafe.dto;

import com.ala4.oxcafe.common.utils.collection.CollUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 角色分配菜单
 *
 * @author PING
 * @version 1.0.0
 * @date 2025/8/12 17:59
 */
@Data
@Schema(description = "角色菜单关联表")
public class RoleMenuRelDTO {

    @Schema(description = "角色ID")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;

    @Schema(description = "菜单ID列表")
//    @NotNull(message = "菜单ID列表不能为空")
//    @NotEmpty(message = "菜单ID列表不能为空")
    private List<Long> menuIds = CollUtil.newArrayList();

    @Schema(description = "菜单路径列表")
    @NotNull(message = "菜单路径列表不能为空")
    @NotEmpty(message = "菜单路径列表不能为空")
    private List<String> menuPaths;

}
